/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 核验身份 POST /new/open/userCheck/check */
export async function openApiNewOpenUserCheckCheckUsingPost({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.OpenApiNewOpenUserCheckCheckUsingPostParams;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/new/open/userCheck/check', {
    method: 'POST',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 获取最近一次核验时间 POST /new/open/userCheck/getLatelyCheck */
export async function openApiNewOpenUserCheckGetLatelyCheckUsingPost({
  options,
}: {
  options?: { [key: string]: unknown };
}) {
  return request<API.RString>('/new/open/userCheck/getLatelyCheck', {
    method: 'POST',
    ...(options || {}),
  });
}
